package com.myblog.myblog.service;

import com.myblog.myblog.poge.Tag;
import com.myblog.myblog.poge.Type;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface TagService {

    Tag saveTag(Tag tag);   //新增

    Tag getTag(Long id);   //查询

    Tag getTagByName(String name);  //查询name

    Page<Tag> listTag(Pageable pageable);  //分页查询

    List<Tag> listTag();

    List<Tag> listTagTop(Integer size);

    List<Tag> listTag(String ids);

    Tag updateTag(Long id,Tag tag);  //修改

    void deleteTag(Long id);
}
